# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Brian Galey <bkgaley at gmail dot com>
# Contributor: Bruno Gola <brunogola at gmail dot com>

pkgname=libfreexl
pkgver=2.0.0
pkgrel=1
pkgdesc="Library to extract valid data from within an Excel (.xls) spreadsheet"
arch=('loong64' 'x86_64')
url="https://www.gaia-gis.it/fossil/freexl/index"
license=('MPL' 'GPL' 'LGPL')
depends=('glibc' 'minizip')
source=(https://www.gaia-gis.it/gaia-sins/${pkgname/lib/}-$pkgver.tar.gz)
sha256sums=('176705f1de58ab7c1eebbf5c6de46ab76fcd8b856508dbd28f5648f7c6e1a7f0')

build() {
  cd "${srcdir}"/${pkgname/lib/}-$pkgver

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}"/${pkgname/lib/}-$pkgver

  make DESTDIR="${pkgdir}" install
}
